$(document).ready(function(){
	$("#logout").click(function(){
		$.post("logout",
		function(){
			alert("logout successfully");
			window.location.href="index.jsp";
		});//post
	});
});